package com.shop.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shop.mall.common.Result;
import com.shop.mall.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 */
public interface UserService extends IService<User> {
    User findByLoginName(String loginName);

    User getUserById(int id);

    List<User> getUserList();

    IPage<User> pageList(int pageSize, int currentPage, String name);

    Result<String> add(User user);

    boolean updateUser(User user);

    boolean deleteById(int id);
}
